# *-* coding:utf8 *-*

import sys
from PyQt5.QtWidgets import QMainWindow ,QApplication,QMessageBox
from PyQt5.QtGui import QIcon

from new_usr import Ui_Form

## 登录界面


class Register(QMainWindow):
    def __init__(self,parent=None,login_window=None):
        super(Register,self).__init__(parent)
        self.ui = Ui_Form()
        self.ui.setupUi(self)
        
        self.setWindowTitle("新用户注册")
        self.connet_close_2_button()
        self.connet_comfirm_2_button()
    def comfire_new_usr(self):
        self.close()
    def back_to_login_page(self):
        self.close()
    def connet_close_2_button(self):
        self.ui.pushButton_2.clicked.connect(self.back_to_login_page)
    def connet_comfirm_2_button(self):
        self.ui.pushButton.clicked.connect(self.comfire_new_usr)
if __name__ =="__main__":
    app = QApplication(sys.argv)
    # app.setWindowIcon(QIcon("./images/cartoon1.ico"))
    B = Register()
    B.show()

    sys.exit(app.exec_())
